import request from '@/utils/request'
export function dictgetlist(params) {
     return request({
      url:'/tdict/cha',
      method:'get',
      params:params
      
    })
  }
export function dictdetaillist(params) {
     return request({
      url:'/dictdetail/cha',
      method:'get',
      params:params
      
    })
  }
  export function dictdelet(id) {
    return request({
      url:'/tdict/shan?id='+id,
      method:'get',
      
    })
  }
  export function dictpldelet(data) {
    return request({
      url:'/tdict/plshan',
      method:'post',
      data:data
    })
  }
  export function dictdetaildelet(id) {
    return request({
      url:'/dictdetail/shan?id='+id,
      method:'get',
      
    })
  }
  export function dictdetailDeleteall(dictId) {
    return request({
      url:'/dictdetail/shanl?dictId='+dictId,
      method:'get',
      
    })
  }
  export function dictupdate(data) {
    return request({
      url:'/tdict/gai',
      method:'post',
      data:data
    })
  }
  export function dictdetailupdate(data) {
    return request({
      url:'/dictdetail/gai',
      method:'post',
      data:data
    })
  }
  export function dictinsert(data) {
    return request({
      url:'/tdict/zen',
      method:'post',
      data:data
    })
  }
  export function dictidetailnsert(data) {
    return request({
      url:'/dictdetail/zen',
      method:'post',
      data:data
    })
  }
  export function dictlookup(name) {
    return request({
      url:'/tdict/look?name='+name,
      method:'get',
    })
  }
  export function dictbatchdelete(data) {
    return request({
      url:'/tdict/batchdelete',
      method:'post',
      data:data
    })
  }
